package com.merak.miner.data.persist.mapper;


import com.merak.miner.data.persist.entity.Crm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author caomao
 * @since 2021-11-16
 */
@Mapper
public interface CrmMapper{

    /**
     * 新增
     * @author cãomao
     * @date 2021/11/16
     **/
    int insert(Crm crm);

    /**
     * 刪除
     * @author cãomao
     * @date 2021/11/16
     **/
    int delete(int id);

    /**
     * 更新
     * @author cãomao
     * @date 2021/11/16
     **/
    int update(Crm crm);

    /**
     * 查询 根据主键 id 查询
     * @author cãomao
     * @date 2021/11/16
     **/
    Crm load(int id);

    /**
     * 查询 分页查询
     * @author cãomao
     * @date 2021/11/16
     **/
    List<Crm> pageList(int offset, int pagesize);

    /**
     * 查询 分页查询 count
     * @author cãomao
     * @date 2021/11/16
     **/
    int pageListCount(int offset,int pagesize);
}
